﻿
namespace LS.Nc6.Application.System
{
    /// <summary>
    /// 组织结构管理自定义方法
    /// </summary>
    public interface ISysOrganizeService : IBaseInterface<SysOrganizeEntity>
    {
        /// <summary>
        /// 保存组织结构管理
        /// </summary>
        /// <param name="model"></param>
        /// <param name="listModel"></param>
        /// <returns></returns>
        int InsertOrgRole(SysOrganizeEntity model, List<SysOrganizeRoleEntity> listModel);

        /// <summary>
        /// 修改组织结构管理
        /// </summary>
        /// <param name="model"></param>
        /// <param name="listModel"></param>
        /// <returns></returns>
        int UpdateOrgRole(SysOrganizeEntity model, List<SysOrganizeRoleEntity> listModel);



        /// <summary>
        /// 获取组织机构
        /// </summary>
        /// <param name="strwhere"></param>
        /// <returns></returns>
        IEnumerable<dynamic> GetOrganizeList(string strwhere);

        /// <summary>
        /// 根据条件获取对应的关系
        /// </summary>
        /// <param name="strwhere"></param>
        /// <returns></returns>
        IList<SysOrganizeRoleEntity> GetOrganizeRoleList(string strwhere);

        /// <summary>
        /// 获取签约用户
        /// </summary>
        /// <param name="strwhere"></param>
        /// <returns></returns>
        IList<SysOrganizeEntity> GetSignContractList(string strwhere);

    }
}
